﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013E7 RID: 5095
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGameCardInfo : IMessage<TrainPartyGameCardInfo>, IMessage, IEquatable<TrainPartyGameCardInfo>, IDeepCloneable<TrainPartyGameCardInfo>, IBufferMessage
	{
		// Token: 0x1700403B RID: 16443
		// (get) Token: 0x0600E421 RID: 58401 RVA: 0x00261DF1 File Offset: 0x0025FFF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGameCardInfo> Parser
		{
			get
			{
				return TrainPartyGameCardInfo._parser;
			}
		}

		// Token: 0x1700403C RID: 16444
		// (get) Token: 0x0600E422 RID: 58402 RVA: 0x00261DF8 File Offset: 0x0025FFF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGameCardInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700403D RID: 16445
		// (get) Token: 0x0600E423 RID: 58403 RVA: 0x00261E0A File Offset: 0x0026000A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGameCardInfo.Descriptor;
			}
		}

		// Token: 0x0600E424 RID: 58404 RVA: 0x00261E11 File Offset: 0x00260011
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCardInfo()
		{
		}

		// Token: 0x0600E425 RID: 58405 RVA: 0x00261E24 File Offset: 0x00260024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCardInfo(TrainPartyGameCardInfo other) : this()
		{
			this.trainPartyCardInfo_ = other.trainPartyCardInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E426 RID: 58406 RVA: 0x00261E4E File Offset: 0x0026004E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameCardInfo Clone()
		{
			return new TrainPartyGameCardInfo(this);
		}

		// Token: 0x1700403E RID: 16446
		// (get) Token: 0x0600E427 RID: 58407 RVA: 0x00261E56 File Offset: 0x00260056
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainPartyGameCard> TrainPartyCardInfo
		{
			get
			{
				return this.trainPartyCardInfo_;
			}
		}

		// Token: 0x0600E428 RID: 58408 RVA: 0x00261E5E File Offset: 0x0026005E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGameCardInfo);
		}

		// Token: 0x0600E429 RID: 58409 RVA: 0x00261E6C File Offset: 0x0026006C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGameCardInfo other)
		{
			return other != null && (other == this || (this.trainPartyCardInfo_.Equals(other.trainPartyCardInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E42A RID: 58410 RVA: 0x00261EA0 File Offset: 0x002600A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.trainPartyCardInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E42B RID: 58411 RVA: 0x00261ED4 File Offset: 0x002600D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E42C RID: 58412 RVA: 0x00261EDC File Offset: 0x002600DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E42D RID: 58413 RVA: 0x00261EE5 File Offset: 0x002600E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.trainPartyCardInfo_.WriteTo(ref output, TrainPartyGameCardInfo._repeated_trainPartyCardInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E42E RID: 58414 RVA: 0x00261F0C File Offset: 0x0026010C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.trainPartyCardInfo_.CalculateSize(TrainPartyGameCardInfo._repeated_trainPartyCardInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E42F RID: 58415 RVA: 0x00261F45 File Offset: 0x00260145
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGameCardInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.trainPartyCardInfo_.Add(other.trainPartyCardInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E430 RID: 58416 RVA: 0x00261F73 File Offset: 0x00260173
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E431 RID: 58417 RVA: 0x00261F7C File Offset: 0x0026017C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 90U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.trainPartyCardInfo_.AddEntriesFrom(ref input, TrainPartyGameCardInfo._repeated_trainPartyCardInfo_codec);
				}
			}
		}

		// Token: 0x04005A43 RID: 23107
		private static readonly MessageParser<TrainPartyGameCardInfo> _parser = new MessageParser<TrainPartyGameCardInfo>(() => new TrainPartyGameCardInfo());

		// Token: 0x04005A44 RID: 23108
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A45 RID: 23109
		public const int TrainPartyCardInfoFieldNumber = 11;

		// Token: 0x04005A46 RID: 23110
		private static readonly FieldCodec<TrainPartyGameCard> _repeated_trainPartyCardInfo_codec = FieldCodec.ForMessage<TrainPartyGameCard>(90U, TrainPartyGameCard.Parser);

		// Token: 0x04005A47 RID: 23111
		private readonly RepeatedField<TrainPartyGameCard> trainPartyCardInfo_ = new RepeatedField<TrainPartyGameCard>();
	}
}
